<template>
  <view @click="handleClick">
      <slot></slot>
  </view>
</template>

<script>
export default {
    props:{
        list:Array,
        index:Number
    },
    mounted(){
        // console.log(this.list)
        // console.log(this.index)
    },
    methods:{
        handleClick(){
            getApp().globalData.list=this.list
            getApp().globalData.index= this.index
            uni.navigateTo({
                url:"/pages/imgDetail/index"
                })
        }
    }

}
</script>

<style>

</style>